package com.dlnu.bean;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.hibernate.validator.constraints.Length;
import com.dlnu.config.Entity;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class Student extends Entity{

	private Integer id;

	@Length(max = 50)
	private String stuNo;

	@Length(max = 50)
	private String name;

	@Length(max = 50)
	private String idcard;

	private Integer gradeId;

	private Integer sex;

	@Length(max = 50)
	private String phone;

	@Length(max = 50)
	private String password;

	private Integer clazzId;

	private Org org;

	private Grade grade;
}